//
//  ZCBaseTableViewCell.m
//  KitchenLife
//
//  Created by dllo on 15/10/12.
//  Copyright © 2015年 赵志程. All rights reserved.
//

#import "ZCBaseTableViewCell.h"
#import "ZCBaseLabel.h"
#import "ZCBaseView.h"
@implementation ZCBaseTableViewCell

#pragma mark 进行初始化
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatView];
    }
    return self;
}
#pragma mark 创建视图
- (void)creatView
{
    self.backView = [[ZCBaseView alloc] init];
    [self.contentView addSubview:self.backView];
    
    self.picImageView = [[UIImageView alloc] init];
    [self.backView addSubview:self.picImageView];
    
    self.iconImageView = [[UIImageView alloc] init];
    [self.backView addSubview:self.iconImageView];
    
    self.titleLabel = [[ZCBaseLabel alloc] init];
    self.titleLabel.backgroundColor = [UIColor clearColor];
    [self.backView addSubview:self.titleLabel];
    
    self.detailLabel = [[ZCBaseLabel alloc] init];
    self.detailLabel.backgroundColor = [UIColor clearColor];
    [self.backView addSubview:self.detailLabel];
    
    self.firstLabel = [[ZCBaseLabel alloc] init];
    self.firstLabel.backgroundColor = [UIColor clearColor];
    [self.backView addSubview:self.firstLabel];
    
    self.secondLabel = [[ZCBaseLabel alloc] init];
    self.secondLabel.backgroundColor = [UIColor clearColor];
    [self.backView addSubview:self.secondLabel];
    
    self.thirdLabel = [[ZCBaseLabel alloc] init];
    self.thirdLabel.backgroundColor = [UIColor clearColor];
    [self.backView addSubview:self.thirdLabel];
    

    self.foImageView = [[UIImageView alloc] init];
    [self.backView addSubview:self.foImageView];

    self.firstDetailLabel = [[ZCBaseLabel alloc] init];
    self.firstDetailLabel.backgroundColor = [UIColor clearColor];
    [self.backView addSubview:self.firstDetailLabel];
    
    self.secondDetailLabel = [[ZCBaseLabel alloc] init];
    self.secondDetailLabel.backgroundColor = [UIColor clearColor];
    [self.backView addSubview:self.secondDetailLabel];
    
    self.thirdDetailLabel = [[ZCBaseLabel alloc] init];
    self.thirdDetailLabel.backgroundColor = [UIColor clearColor];
    [self.backView addSubview:self.thirdDetailLabel];
    

}

-(void)layoutSubviews
{
    [super layoutSubviews];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
